/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.javahispano.nettools.cliente.Grafico;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import javax.swing.JEditorPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.UIManager;

/**
 *
 * @author Usuario
 */
public class Consola {
        private JEditorPane consola2 = new JEditorPane();
        private JPanel Shell2;
        Container   contentPane=   null;
        JScrollPane jScrollPane2 = new JScrollPane();
    
    

    Consola(Container contentPane) {
         consola2= new JEditorPane();
         String clase = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel";
//         UIManager.setLookAndFeel(clase);
//        Shell2.putClientProperty(SubstanceLookAndFeel.TABBED_PANE_CLOSE_BUTTONS_PROPERTY,
//	Boolean.TRUE);
    Shell2=new JPanel();

   //------ Shell2=new JPanel();
    contentPane = (JPanel) contentPane;
    //contentPane.setLayout(new GridBagLayout());
    Shell2.setLayout(new BorderLayout(1,0));

    consola2.setBackground(Color.black);
    consola2.setForeground(Color.green);
    consola2.setPreferredSize(new Dimension(36, 21));//(36, 21));


    jScrollPane2.getViewport().add(consola2,null);
    Shell2.add(jScrollPane2);



    }


    public void MostrarMensajeShell (String mensaje)
    {
        this.consola2.setText(mensaje);
      //this.setConsola2(mensaje);

     }



    /**
     * @return the Shell2
     */
    public JPanel getShell2() {
        return Shell2;
    }

    /**
     * @param Shell2 the Shell2 to set
     */
    public void setShell2(JPanel Shell2) {
        this.Shell2 = Shell2;
    }

    /**
     * @return the consola2
     */
    public JEditorPane getConsola2() {
        return consola2;
    }

    /**
     * @param consola2 the consola2 to set
     */
    public void setConsola2(String t) {
        this.consola2.setText(t);
    }



}
